package com.core.zyyz.pcmc.domain;

import java.util.Date;

import com.core.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.core.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 首页模板对象 pcmc_home_template
 *
 * @author core
 * @date 2024-10-23
 */
public class PcmcHomeTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板编码 */
    private String templateCode;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 模板数据 */
    @Excel(name = "模板数据")
    private String templateData;

    /** 是否全局配置 */
    @Excel(name = "是否全局配置")
    private String isGlobalConfig;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String isEnabled;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 最后更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateDate;

    /** 最后更新用户编码 */
    @Excel(name = "最后更新用户编码")
    private String lastUpdateBy;

    public void setTemplateCode(String templateCode)
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode()
    {
        return templateCode;
    }
    public void setTemplateName(String templateName)
    {
        this.templateName = templateName;
    }

    public String getTemplateName()
    {
        return templateName;
    }
    public void setTemplateData(String templateData)
    {
        this.templateData = templateData;
    }

    public String getTemplateData()
    {
        return templateData;
    }
    public void setIsGlobalConfig(String isGlobalConfig)
    {
        this.isGlobalConfig = isGlobalConfig;
    }

    public String getIsGlobalConfig()
    {
        return isGlobalConfig;
    }
    public void setIsEnabled(String isEnabled)
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled()
    {
        return isEnabled;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setLastUpdateDate(Date lastUpdateDate)
    {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Date getLastUpdateDate()
    {
        return lastUpdateDate;
    }
    public void setLastUpdateBy(String lastUpdateBy)
    {
        this.lastUpdateBy = lastUpdateBy;
    }

    public String getLastUpdateBy()
    {
        return lastUpdateBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("templateCode", getTemplateCode())
                .append("templateName", getTemplateName())
                .append("templateData", getTemplateData())
                .append("isGlobalConfig", getIsGlobalConfig())
                .append("isEnabled", getIsEnabled())
                .append("createDate", getCreateDate())
                .append("createBy", getCreateBy())
                .append("lastUpdateDate", getLastUpdateDate())
                .append("lastUpdateBy", getLastUpdateBy())
                .toString();
    }
}
